package com.guaju.yueshangLife.viewmodel;

import android.app.Activity;
import android.content.Context;
import android.databinding.BaseObservable;
import android.view.View;

/**
 * Created by guaju on 2018/9/12.
 */

public class GoodsDetailVM extends BaseObservable {



    public void onBack(View v){
        Context context = v.getContext();
        if (context instanceof Activity){
            ((Activity) context).finish();
        }
    }
}
